require('./loader.js')
require('./mode1.js')
require('./mode2.js')
require('./mode3.js')
d = window.loader(24)
c = window.loader.n(d)
 v = window.loader(1947)
_ = window.loader.n(v)
 f = window.loader(303)
 m = window.loader.n(f)
 l = window.loader(44)
function h(e, path, n, r) {
    var s = n.s
        , d = n.k
        , f = n.l
        , v = n.d
        , h = n.sort
        , k = n.num
        , y = function (content, t, e) {
        for (var a = Array.from(content), n = Array.from(t), r = a.length, o = n.length, d = String.fromCodePoint, i = 0; i < r; i++)
            a[i] = d(a[i].codePointAt(0) ^ n[(i + e) % o].codePointAt(0));
        return a.join("")
    }(function (s, t, path, e) {
        return [s, t, e, path].join("(&&)")
    }(function (t, e) {
        var n = c()(t);
        if (!_()(n)) {
            var r = [];
            for (var d in n)
                m()(n[d]) && "get" === e && (n[d] = n[d].join("")),
                "post" === e && (m()(n[d]) || o()(n[d])) && (n[d] = JSON.stringify(n[d])),
                    r.push(n[d]);
            return r.sort(),
                r.join("")
        }
    }(e, r), parseInt((new Date).getTime() / 1e3) - 655876800 - v, path, h), Object(l.b)(s, d, f), k);
    return t.from(y).toString("base64")
}

let r = {
    "market_id": 1,
    "genre_id": 173,
    "country_id": 75,
    "device_id": 1,
    "page": 2,
    "time": 1731998130,
    "rank_type": 1,
    "brand_id": 3
}
let path = '/v1/rank'
let n = {
    "s": "02518e7f1b3a869d64504885d72fbcfa",
    "k": "ad253ef48ad90afd",
    "l": "f1c4a4d975e5d546",
    "d": -2,
    "sort": "dd",
    "num": 10
}

console.log(h(r, path, n, "get"))
// window.loader(24)